package com.mstar.qs.common.bean;

public enum DataServiceType {
	DELAY(0), REAL_TIME(1), DELAY_BATS(2), BATS(3);

	private int value;

	private DataServiceType(int value) {
		this.value = value;
	}

	public int getNumber() {
		return this.value;
	}

	public static DataServiceType valueOf(int value) {
		switch (value) {
		case 0:
			return DELAY;
		case 1:
			return REAL_TIME;
		case 2:
			return DELAY_BATS;
		case 3:
			return BATS;
		default:
			return null;
		}
	}

}
